const getters = {
  // 顶部导航
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, //用户的token 快速访问的方式
  userInfo: state => state.user.userInfo,//用户信息
  staffPhoto: state => state.user.userInfo.staffPhoto,//用户头像
    companyId: state => state.user.userInfo.companyId,
  avatar: state => state.user.avatar,
  name: state => state.user.name
}
export default getters
